From 5972b1915be7203a996e44c7c9d0dfa140fb8741 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 2 Nov 2016 09:36:23 -0700 Subject: [PATCH] Add a test for the previous PR --- tests/doc.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/doc.rs b/tests/doc.rs index 25ef939c8..ba5ea85ac 100644 --- a/tests/doc.rs +++ b/tests/doc.rs @@ -590,3 +590,25 @@ fn document_only_lib() { execs().with_status(0)); assert_that(&p.root().join("target/doc/foo/index.html"), existing_file()); } + +#[test] +fn plugins_no_use_target() { + if !cargotest::is_nightly() { + return + } + let p = project("foo") + .file("Cargo.toml", r#" + [package] + name = "foo" + version = "0.0.1" + authors = [] + + [lib] + proc-macro = true + "#) + .file("src/lib.rs", ""); + assert_that(p.cargo_process("doc") + .arg("--target=x86_64-unknown-openbsd") + .arg("-v"), + execs().with_status(0)); +} -- 2.30.2